#include "trap.h"
#include "basic_test.h"
    .set noat
    .globl main
    .text
main:
    ADD_TEST(0xe4b6, 0x2124, 0x6f17, 0x72b8)
    ADD_TEST(0x2a19, 0xdd40, 0xa879, 0x71e0)
    ADD_TEST(0x1257, 0xc7a6, 0x24ac, 0x79b4)
    ADD_TEST(0xeded, 0xedee, 0xeded, 0xedee)
    ADD_TEST(0x9fcc, 0x8a42, 0x0000, 0x0000)

    ADDU_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    ADDU_TEST(0xeca4, 0x85a1, 0x0000, 0x0000)
    ADDU_TEST(0x1257, 0xc7a6, 0x24ac, 0x79b4)
    ADDU_TEST(0xfddf, 0xd88a, 0xf06b, 0xa9f0)
    ADDU_TEST(0xe4b6, 0x2124, 0x6f17, 0x72b8)

    SUB_TEST(0xd043, 0x9d20, 0x210c, 0x4488)
    SUB_TEST(0xeca4, 0x85a1, 0x8000, 0x0001)
    SUB_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    SUB_TEST(0x45d5, 0xeda8, 0x2890, 0xffb0)
    SUB_TEST(0x0000, 0x0000, 0x8000, 0x0001)

    SUBU_TEST(0x8061, 0x3360, 0x42ad, 0xf91d)
    SUBU_TEST(0xd043, 0x9d20, 0x210c, 0x4488)
    SUBU_TEST(0x0000, 0x0000, 0x8000, 0x0000)
    SUBU_TEST(0x0913, 0xc7b8, 0x6c5f, 0x982c)
    SUBU_TEST(0x0000, 0x0000, 0x7d54, 0xa866)

    SLT_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    SLT_TEST(0x8061, 0x3360, 0x42ad, 0xf91d)
    SLT_TEST(0x9fcc, 0x8a42, 0x0000, 0x0000)
    SLT_TEST(0xeca4, 0x85a1, 0xeca4, 0x8222)
    SLT_TEST(0x0000, 0x0000, 0x0000, 0x0000)

    SLTU_TEST(0x8061, 0x3360, 0x42ad, 0xf91d)
    SLTU_TEST(0x0000, 0x0000, 0xeca4, 0x85a1)
    SLTU_TEST(0xeca4, 0x85a1, 0xeca4, 0x8222)
    SLTU_TEST(0x0000, 0x0000, 0x0000, 0x0000)
    SLTU_TEST(0x0000, 0x0000, 0x7d54, 0xa866)

    MULT_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    MULT_TEST(0x9fcc, 0x8a42, 0x0000, 0x0000)
    MULT_TEST(0xb657, 0xc3ec, 0x4237, 0x3c21)
    MULT_TEST(0xe054, 0x1e54, 0x8e52, 0x1d00)
    MULT_TEST(0x436d, 0x75a7, 0x2cb9, 0xb728)
    MULT_TEST(0x7fff, 0xffff, 0x7fff, 0xffff)
    MULT_TEST(0x8000, 0x0001, 0x8000, 0x0001)

    MULTU_TEST(0x9fcc, 0x8a42, 0x0000, 0x0000)
    MULTU_TEST(0x0913, 0xc7b8, 0x6c5f, 0x982c)
    MULTU_TEST(0xc9c9, 0xc9ca, 0xeded, 0xedee)
    MULTU_TEST(0x2489, 0xafbc, 0xeca4, 0x85a1)
    MULTU_TEST(0x0000, 0x0000, 0x7d54, 0xa866)
    MULTU_TEST(0xeded, 0xedee, 0xeded, 0xedee)
    MULTU_TEST(0xffff, 0xffff, 0xffff, 0xffff)
    HIT_GOOD_TRAP		# stop temu